<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
	
	<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>
<!DOCTYPE html >
<html>
<head>
<meta content="charset=utf-8">
<title>添加数据</title>
</head>
<body>
<!-- 1.3 在页面中显式数据 
    el表达式：获得web开发常用对象
    request
    name=user
    ${name.成员变量}
-->
  <form method="get" action="update.user">
          <table>
            <tr>
              <td>用户名</td>
              <td><input type="text" name="username" value="${user.uname}"></td>
            </tr>
             <tr>
              <td>密码</td>
              <td><input type="text" name="userpwd" value="${user.upwd}"></td>
            </tr>
            
            <tr>
              <td>性别</td>
              <td>
                 
                  <c:if test="${user.usex eq '男'}">
                       <input type="radio" name="usersex"  value="男" checked="checked">男
                  </c:if>
                    <c:if test="${user.usex != '男'}">
                       <input type="radio" name="usersex"  value="男" >男
                  </c:if>
                  <c:if test="${user.usex == '女'}">
                       <input type="radio" name="usersex"  value="女" checked="checked">女
                  </c:if>
                  <c:if test="${user.usex != '女'}">
                       <input type="radio" name="usersex"  value="女" >女
                  </c:if>
                   
              </td>
            </tr>
             <tr>
              <td>地址</td>
              <td><input type="text" name="useraddress" value="${user.uaddress}"></td>
            </tr>
       
            
            <tr>
            <td colspan="2">
              <input type="hidden" name="uid" value="${user.uid}">
               <input type="submit" value="修改">
            </td>
            </tr>
          </table> 
  </form>

</body>
</html>